<#assign pageName="模块管理">
<#assign keywords="">
<#assign description="">

<@override name="page-content">
	<form class="form-horizontal" role="form" method="post">
    <div class="pull-left">
    	<div class="page-header">
    		<h1>
    			${pageName}
    			<small>
    				<i class="ace-icon fa fa-angle-double-right"></i>
    				共${(queryResult.total)!0}条记录
    			</small>
    		</h1>
    	</div><!-- /.page-header -->
    </div>

    <div class="pull-right">
        <a href="javascript:" onclick="$('#pageNo').val(1);$('form:first').submit();" class="btn btn-info btn-sm corner-radius">
            <i class="ace-icon fa fa-search icon-on-left bigger-110"></i>查询
        </a>
        <a href="add" class="btn btn-info btn-sm corner-radius">
            <i class="ace-icon fa fa-plus icon-on-left bigger-110"></i>新增
        </a>
    </div>
    
	<div class="row">
		<div class="col-xs-12">	
			<div>
				<table class="table table-striped table-bordered table-hover table-set">
					<thead>
						<tr>
							<th class="center" width="50px" nowrap="nowrap">序号</th>
					    	<th class="center" nowrap="nowrap">id</td>
					    	<th class="center" nowrap="nowrap">映射名称</td>
					    	<th class="center" nowrap="nowrap">请求地址</td>
					    	<th class="center" nowrap="nowrap">请求方法</td>
					    	<th class="center" nowrap="nowrap">控制类名称</td>
					    	<th class="center" nowrap="nowrap">请求后的响应地址</td>
					    	<th class="center" nowrap="nowrap">备注</td>
							<th width="80px"></th>
						</tr>
					</thead>
					<tbody>
					<#if queryResult.rows??>  
                        <#list queryResult.rows as dataItem>  
						<tr>
							<td class="center" width="50px" nowrap="nowrap">
								${(pageNo-1)*pageSize+dataItem_index+1} 
							</td>
							<td nowrap="nowrap">${dataItem.id}</td>	
							<td nowrap="nowrap">${dataItem.reflectName}</td>	
							<td nowrap="nowrap">${dataItem.requestUrl}</td>	
							<td nowrap="nowrap">${dataItem.requestMethod}</td>	
							<td nowrap="nowrap">${dataItem.ctrlName}</td>	
							<td nowrap="nowrap">${dataItem.responseUrl}</td>	
							<td nowrap="nowrap">${dataItem.remark}</td>	
							<td>
								<div class="btn-group">
									<a href="edit-${dataItem.id}" class="btn btn-xs btn-warning"  data-rel="tooltip-warning"  title="编辑">
										<i class="ace-icon fa fa-pencil bigger-120"></i>
									</a>
	
									<button type="button" class="btn btn-xs btn-danger" data-rel="tooltip-error" title="删除" 
										onclick="confirm('确定要删除‘${dataItem.id}’吗？', {id:'${dataItem.id}',title:'${dataItem.id}'},'del')">
										<i class="ace-icon fa fa-trash-o bigger-120"></i>
									</button>
								</div>
							</td>
						</tr>
						</#list>
					</#if>
					</tbody>
				</table>
				<div class="well well-sm">
					<@ctrl.pageShow (queryResult.pageCount)!0, (queryResult.pageIndex)!0 />
				</div>
			</div>
		</div><!-- /.span -->
	</div><!-- /.row -->
	</form>
</@override>
<@override name="page-scripts">
	
</@override>
<@extends name="/layout/basepage.html"/> 
